﻿/*------------------------------------------------
// File Description: ProductViaSiteWeldData DataBase Entity
// Author:			 Crane
// Create Time:		 2020-06-28 16:16:21
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 焊机参数
    /// </summary>
    [Table(nameof(ProductViaSiteWeldData))]
    public class ProductViaSiteWeldData : BaseEntity
    {
        private string _barCode = string.Empty;
        private string _fullData = string.Empty;

        #region Public Property

        ///<Summary>
        /// BarCode
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// ViaSiteId
        ///</Summary>
        public int ViaSiteId { get; set; }

        ///<Summary>
        /// PreHeat1A
        ///</Summary>
        public decimal PreHeat1A { get; set; }

        ///<Summary>
        /// PreHeat1B
        ///</Summary>
        public decimal PreHeat1B { get; set; }

        ///<Summary>
        /// PreHeat2A
        ///</Summary>
        public decimal PreHeat2A { get; set; }

        ///<Summary>
        /// PreHeat2B
        ///</Summary>
        public decimal PreHeat2B { get; set; }

        ///<Summary>
        /// PreHeat3A
        ///</Summary>
        public decimal PreHeat3A { get; set; }

        ///<Summary>
        /// PreHeat3B
        ///</Summary>
        public decimal PreHeat3B { get; set; }

        ///<Summary>
        /// SolderTemp1A
        ///</Summary>
        public decimal SolderTemp1A { get; set; }

        ///<Summary>
        /// SolderTemp1B
        ///</Summary>
        public decimal SolderTemp1B { get; set; }

        ///<Summary>
        /// SolderTemp2A
        ///</Summary>
        public decimal SolderTemp2A { get; set; }

        ///<Summary>
        /// SolderTemp2B
        ///</Summary>
        public decimal SolderTemp2B { get; set; }

        ///<Summary>
        /// Cool1A
        ///</Summary>
        public decimal Cool1A { get; set; }

        ///<Summary>
        /// Cool1B
        ///</Summary>
        public decimal Cool1B { get; set; }

        ///<Summary>
        /// Cool2A
        ///</Summary>
        public decimal Cool2A { get; set; }

        ///<Summary>
        /// Cool2B
        ///</Summary>
        public decimal Cool2B { get; set; }

        ///<Summary>
        /// Cool3A
        ///</Summary>
        public decimal Cool3A { get; set; }

        ///<Summary>
        /// Cool3B
        ///</Summary>
        public decimal Cool3B { get; set; }

        ///<Summary>
        /// Cool4A
        ///</Summary>
        public decimal Cool4A { get; set; }

        ///<Summary>
        /// Cool4B
        ///</Summary>
        public decimal Cool4B { get; set; }

        ///<Summary>
        /// FluxTempA
        ///</Summary>
        public decimal FluxTempA { get; set; }

        ///<Summary>
        /// FluxTempB
        ///</Summary>
        public decimal FluxTempB { get; set; }

        ///<Summary>
        /// SolderPowerFroA
        ///</Summary>
        public decimal SolderPowerFroA { get; set; }

        ///<Summary>
        /// SolderPowerFroB
        ///</Summary>
        public decimal SolderPowerFroB { get; set; }

        ///<Summary>
        /// SolderTimeFroA
        ///</Summary>
        public decimal SolderTimeFroA { get; set; }

        ///<Summary>
        /// SolderTimeFroB
        ///</Summary>
        public decimal SolderTimeFroB { get; set; }

        ///<Summary>
        /// SolderTempFroA
        ///</Summary>
        public decimal SolderTempFroA { get; set; }

        ///<Summary>
        /// SolderTempFroB
        ///</Summary>
        public decimal SolderTempFroB { get; set; }

        ///<Summary>
        /// 全部参数
        ///</Summary>
        public string FullData
        {
            get { return string.IsNullOrWhiteSpace(_fullData) ? string.Empty : _fullData; }
            set { _fullData = value; }
        }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 焊机参数
        /// </summary>
        public virtual DbSet<ProductViaSiteWeldData> ProductViaSiteWeldDatas { get; set; }
    }
}